﻿--[[
   @brief    ui logic for about dlg
   @author   rickonzhang
   @version  1.0
   @date     2015-03-12
--]]

update_dialog_desc =
{
    module_name = 'update_tips_dialog',
    events = 
    {
        {        
            
            c_event = 
            {
                {
                    id  = ierd_tgp.upd_loader.kOnPreUpdateDetected, --升级检查完成
                    callback = "update_dialog_control.on_preupdate_detected"
                },
            },
            lua_event = 
            {
                {
                    id  = main_menue_event.MAIN_MENUE_TGP_UPDATE,
                    callback = "update_dialog_control.open_update_dialog"
                },
                {
                    id = main_menue_event.MAIN_MENUE_UPDATE_TIPS,
                    callback = "update_dialog_control.query_update_version_info"
                }
            },
            listen_broadcast = 
            {
                {
                    id = 'i_broadcast_show_update_dlg',
                    callback = 'update_dialog_control.open_update_dialog',
                },
                {
                    id = 'Msg_MainWndShow',
                    callback = 'update_dialog_control.on_main_wnd_show'
                },
            },
            lua_file = "main_menue_update\\control.lua"
        }
    }
};
desc_mgr.add(update_dialog_desc);